package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Ad;
import com.stylefeng.guns.modular.system.dao.AdMapper;
import com.stylefeng.guns.modular.system.service.IAdService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 广告 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-12-20
 */
@Service
public class AdServiceImpl extends ServiceImpl<AdMapper, Ad> implements IAdService {

    @Autowired
    AdMapper adMapper;

    public List<Ad> getAd(String channel) throws Exception{
        return adMapper.getAd(channel);
    }

}
